package com.atguigu.edu2021.mock.bean;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 订单明细 订单明细
 * </p>
 *
 * @author zhangchen
 * @since 2021-09-05
 */
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 课程id
     */
    private Long courseId;

    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 订单编号
     */
    private Long orderId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 原始金额
     */
    private BigDecimal originAmount;

    /**
     * 优惠劵减免金额
     */
    private BigDecimal couponReduce;

    /**
     * 最终金额
     */
    private BigDecimal finalAmount;

    /**
     * 会话id 当前会话id 继承购物车中会话id
     */
    private String sessionId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public BigDecimal getOriginAmount() {
        return originAmount;
    }

    public void setOriginAmount(BigDecimal originAmount) {
        this.originAmount = originAmount;
    }

    public BigDecimal getCouponReduce() {
        return couponReduce;
    }

    public void setCouponReduce(BigDecimal couponReduce) {
        this.couponReduce = couponReduce;
    }

    public BigDecimal getFinalAmount() {
        return finalAmount;
    }

    public void setFinalAmount(BigDecimal finalAmount) {
        this.finalAmount = finalAmount;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "OrderDetail{" +
        "id=" + id +
        ", courseId=" + courseId +
        ", courseName=" + courseName +
        ", orderId=" + orderId +
        ", userId=" + userId +
        ", originAmount=" + originAmount +
        ", couponReduce=" + couponReduce +
        ", finalAmount=" + finalAmount +
        ", sessionId=" + sessionId +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
